{include file="header.php"}

<h2>
	{$blog.title}
</h2>

<div>
	{$blog.created}
</div>

<div>
	{$blog.content}
</div>

<hr />

<form action="{$site_url}?controller=blog&action=view&id={$blog.id}" method="post">
	<table>
		<tr>
			<td>
				<label for="c_title">Title</label>
			</td>
			<td>
				<input type="text" name="c_title" id="c_title" class="inputbox" />
			</td>
		</tr>
		<tr>
			<td>
				<label for="c_comment">Comment</label>
			</td>
			<td>
				<textarea name="c_comment" id="c_comment"></textarea>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="submit" name="submit" id="submit" value="Submit Comment" />
			</td>
		</tr>
	</table>
</form>



<div id="comment_list">
	
	{if $comments}
	{foreach $comments as $comment}
	
	<div class="comment_item">
		<h4>
			{$comment.c_title}
		</h4>

		<div class="comment_body">
			{$comment.c_comment}
		</div>

		<small>{$comment.c_created}</small>
	</div>
	
	{/foreach}
	{/if}
	
</div>



{include file="footer.php"}